package org.real.guetshop.service;

import org.real.guetshop.pojo.dto.EmployeeDTO;
import org.real.guetshop.pojo.dto.EmployeeLoginDTO;
import org.real.guetshop.pojo.dto.EmployeePageQueryDTO;
import org.real.guetshop.pojo.entity.Employee;
import org.real.guetshop.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     * @param employeeDTO
     */
    void addNewEmployee(EmployeeDTO employeeDTO);

    /**
     * 员工分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 删除员工
     * @param employeeDTO
     */
    void deleteEmployee(EmployeeDTO employeeDTO);

    /**
     * 修改员工信息
     * @param employeeDTO
     */
    void updateEmployee(EmployeeDTO employeeDTO);

    /**
     * 根据id查询员工
     * @param id
     * @return
     */
    Employee getById(Integer id);
}
